package com.yuanchu.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanchu.store.dto.EditStoreParamsDto;
import com.yuanchu.store.dto.StoreDataDto;
import com.yuanchu.store.dto.StoreSalesDto;
import com.yuanchu.store.entity.YoshopStoreEntity;
import com.yuanchu.store.entity.YoshopStoreMenuEntity;
import com.yuanchu.store.entity.YoshopStoreRoleEntity;

import java.util.List;

/**
 * 商家(商户)记录表
 *
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 20:57:21
 */
public interface YoshopStoreService extends IService<YoshopStoreEntity> {


    /**
     * 查询商家角色
     * @param storeId
     * @return
     */
    List<YoshopStoreRoleEntity> queryStoreRoleList(Integer storeId);

    StoreDataDto storeData();

    /**
     * 查询商家菜单
     * @param storeId
     * @return
     */
    List<YoshopStoreMenuEntity> queryStoreMenuList(Integer storeId);

    /**
     * 查询商家信息
     * @param storeId
     * @return
     */
    YoshopStoreEntity queryStoreInfo(Integer storeId);

    /**
     * 修改商家信息
     * @param param
     * @param storeId
     * @return
     */
    boolean updateStoreInfo(EditStoreParamsDto param, Integer storeId);


    /**
     * 查询商家数据
     * @return
     */
    StoreSalesDto queryStatisticsData();
}

